//
//  E_PrintView.m
//  pa
//
//  Created by HaiJiao Chen on 13-1-4.
//  Copyright (c) 2013年 __MyCompanyName__. All rights reserved.
//

#import "E_PrintView.h"
#import "Printer.h"
#import "E_invoce.h"

@implementation E_PrintView
@synthesize printerView;
@synthesize e_mailView;

-(IBAction)switchChanged:(UISegmentedControl*)sender
{
    if ([sender selectedSegmentIndex] == 0)
    {
        printerView.hidden = NO;
        e_mailView.hidden = YES;
    }
    else
    {
        printerView.hidden = YES;
        e_mailView.hidden = NO;
    }
}

-(IBAction)cancel:(id)sender
{
    [self removeFromSuperview];
}

-(void)viewLoadFromNib:(NSArray*)params
{
    [printerView viewLoadFromNib:[params objectAtIndex:0]];
    [e_mailView viewLoadFromNib:[params objectAtIndex:1]];
}

@end
